import request from '@/utils/request'


// 查询列表
export function listPhouse(query) {
  return request({
    url: '/hmy-park/phouse/find',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getPhouse(phouseId) {
  return request({
    url: '/hmy-park/phouse/getPhouse/' + phouseId,
    method: 'get'
  })
}

// 编码重复校验
export function findCode(phouseCode) {
  return request({
    url: '/hmy-park/phouse/findCoud/' + phouseCode,
    method: 'get'
  })
}

// 新增角色
export function addPhouse(data) {
  return request({
    url: '/hmy-park/phouse/save',
    method: 'post',
    data: data
  })
}

// 修改角色
export function updatePhousr(data) {
  return request({
    url: '/hmy-park/phouse/update',
    method: 'post',
    data: data
  })
}

//删除栏舍
export function delPhousr(phouseId) {
  return request({
    url: '/hmy-park/phouse/del/' + phouseId,
    method: 'post'
  })
}


